﻿<UserControl
    x:Class="SmartSpace.UI.Silverlight.Dynamic.Controls.CodeControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">
    <UserControl.Resources>
        <Style TargetType="TextBox" x:Key="xEdit">
            <Setter Property="FontSize" Value="12"/>
            <Setter Property="Padding" Value="3,2,3,2"/>
            <Setter Property="Margin" Value="1,0,1,0"/>
            <Setter Property="HorizontalContentAlignment" Value="Center"/>
            <Setter Property="BorderThickness" Value="0,0,0,0"/>
            <Setter Property="TabNavigation" Value="Once"/>
        </Style>
    </UserControl.Resources>
    <Border BorderThickness="1" Padding="3,1,3,1">
    <StackPanel Orientation="Horizontal" x:Name="stackPanelCode">
        <TextBlock Name="m_textHeader" VerticalAlignment="Center" />
        <TextBox Name="m_textCode" HorizontalContentAlignment="Center" Style="{StaticResource xEdit}"/>
        <TextBlock Name="m_textFooter" VerticalAlignment="Center"/>
        </StackPanel>
    </Border>
</UserControl>
